package com.test.application.designPatterns.factory.simpleFactory;

/**
 * 描述: TODO
 * 作者: yanruizhi
 * 时间: 2024/9/23 17:42
 */
public class CoffeeStore {
    public Coffee orderCoffee(String type) {
        SimpleCoffeeFactory factory = new SimpleCoffeeFactory();
        Coffee coffee = factory.createCoffee(type);
        coffee.addSugar();
        coffee.addMilk();
        return coffee;
    }
}
